package com.rick.service;

import client.AccountClientService;
import dto.AccountDTO;
import org.springframework.web.bind.annotation.RestController;
import result.Result;

/**
 * @ClassName AccountClientServiceImpl
 * @Description feign远程调用实现
 * @Date 2020/12/12 16:16
 * @Author Rick Jen
 */
//@RestController
public class AccountClientServiceImpl  {

    /**
     * 手机号获取用户信息
     * @param phone 用户手机号
     */
    public Result<AccountDTO> loadAccountByPhone(String phone) {
        return Result.success(AccountDTO.builder()
                .accountId(100L)
                .build());
    }
}
